package com.iot.core.util;

public class MyStringUtil {
    public static String trimEnd( String s,  String suffix) {
        if (s.endsWith(suffix)) {

            return s.substring(0, s.length() - suffix.length());

        }
        return s;
    }
}
